home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 25 / CD Expert nº 25.iso / Redguard / Redguard.exe / data1.cab / Common_Files / soup386 / SOUP386.DEF
Encoding:
Text File  |  1998-11-25  |  42.3 KB  |  1,638 lines

  1. ; RedGuard Global function, flag and equate definition file
  2.  
  3. [functions]
  4.  
  5. ; functions section.
  6. ; functions defined as xxx parms y
  7. ; where xxx is an ascii name for the function and y is the number of parameters
  8. ; the function takes.
  9.  
  10. task        sRotate                parms 4
  11. task        sRotateByAxis            parms 3
  12. task        sRotateToAxis            parms 3
  13. task        sMove                parms 4
  14. task        sMoveByAxis            parms 3
  15. task        sMoveAlongAxis            parms 3
  16. function    HeaderHook            parms 0
  17. task        swordAI                 parms 0
  18. task        projectileAI             parms 0
  19. function    chargeWeapon            parms 1
  20. function    PlayerMain            parms 0
  21. function    PrintParms            parms 8
  22. function    LogParms            parms 8
  23. function    PrintStringParm            parms 1
  24. function    PrintSingleParm            parms 1
  25. function    SpacePressed            parms 0
  26. task        WaitOnTasks            parms 0
  27. function    updatePlayerViewAttrib        parms 0
  28. function    cameraController        parms 0
  29. task        showObjRot            parms 8
  30. task        showObj                parms 3
  31. task        showObjLoc            parms 3
  32. task        showObjPan            parms 4
  33. task        showObjPanLoc            parms 4
  34. task        lookObj                parms 1
  35. task        showPlayer            parms 0
  36. task        showPlayerPan            parms 1
  37. task        lookCyrus            parms 1
  38. task        showCyrus            parms 3
  39. task        showCyrusLoc            parms 3
  40. task        showCyrusPan            parms 4
  41. task        showCyrusPanLoc            parms 4
  42. function    PlayAnimation            parms 2
  43. function     lockoutPlayer            parms 1
  44. function     menuNew                parms 0
  45. task         menuProc            parms 0
  46. function     menuAddItem            parms 3
  47. function     menuSelection            parms 0
  48. task        RTX                parms 1
  49. task        rtxAnim                parms 4
  50. task        RTXpAnim            parms 4
  51. task        RTXp                parms 1
  52. task        Rotate                parms 4
  53. task        RotateByAxis            parms 3
  54. task        RotateToAxis            parms 3
  55. task        WalkForward            parms 1
  56. task        WalkBackward            parms 1
  57. task        MoveForward            parms 1
  58. task        MoveBackward            parms 1
  59. task        MoveLeft            parms 1
  60. task        MoveRight            parms 1
  61. task        Move                parms 4
  62. task        MoveByAxis            parms 3
  63. task        MoveAlongAxis            parms 3
  64. task        MoveObjectAxis            parms 3
  65. task        MoveToLocation            parms 2
  66. task        WanderToLocation        parms 2
  67. task        MoveToMarker            parms 2
  68. function    SetObjectLocation        parms 4
  69. task        Wait                parms 1
  70. function    DistanceFromStart        parms 1
  71. function    Light                parms 2
  72. function    LightRadius            parms 1
  73. function    LightIntensity            parms 1
  74. function    LightOff            parms 0
  75. function    LightOffset            parms 3
  76. function    LightFlicker            parms 2
  77. function    FlickerLight            parms 1
  78. function    LightFlickerOff            parms 0
  79. function    LightSize            parms 2
  80. function    LightSizeOff            parms 0
  81. multitask    FxPhase                parms 7
  82. multitask    FxFlickerOnOff            parms 1
  83. multitask    FxFlickerDim            parms 1
  84. multitask    FxLightSize            parms 2
  85. function    Flat                parms 1
  86. function    FlatSetTexture            parms 2
  87. function    FlatOff                parms 0
  88. function    FlatOffset            parms 3
  89. function    FlatLikeStatic            parms 1
  90. function    FlatAnimate            parms 3
  91. function    FlatStop            parms 0
  92. function    SetAttribute            parms 2
  93. function    GetAttribute            parms 1
  94. function    SetGlobalFlag            parms 1
  95. function    TestGlobalFlag            parms 1
  96. function    ResetGlobalFlag            parms 1
  97. task        FacePlayer            parms 1
  98. task        FacePlayerInertia        parms 1
  99. task        FaceAngle             parms 1
  100. task        FacePos                parms 2
  101. task        FaceObject            parms 1
  102. function    Sound                parms 3
  103. function    FlatSound            parms 3
  104. multitask    AmbientSound            parms 3
  105. multitask    AmbientRtx            parms 3
  106. function    Jump                parms 0
  107. task        WaitNonMulti            parms 0
  108. task        WaitOnDialog            parms 0
  109. function    HideMe                parms 0
  110. function    ShowMe                parms 0
  111. function    Rnd                parms 1
  112. function    QuickRnd            parms 1
  113. function    MyId                parms 0
  114. task        FaceLocation            parms 2
  115. function    DistanceFromLocation        parms 1
  116. function    LoadWorld            parms 3
  117. function    SetAiType            parms 1
  118. function    SetAiMode            parms 1
  119. function    MyAiType            parms 0
  120. function    MyAiMode            parms 0
  121. task        GotoLocation            parms 1
  122. task        Guard                parms 3
  123. task        Animal                parms 2
  124. function    TrueFunction            parms 0
  125. function    TurnToPos            parms 2
  126. function    AtPos                parms 3
  127. function    TurnToAngle            parms 1
  128. function    MovePos                parms 3
  129. function    SetStartPosition        parms 3
  130. function    GetMyAttr            parms 1
  131. function    SetMyAttr            parms 2
  132. function    GetFramePassed            parms 0
  133. function    SpeedScale            parms 1
  134. function    InKey                parms 1
  135. function    PressKey            parms 1
  136. FUNCTION    ACTIVATE            PARMS 1
  137. function    TorchActivate            parms 1
  138. function    Deactivate            parms 0
  139. function    ReleaseAnimation        parms 0
  140. function    HoldAnimation            parms 0
  141. function    PauseAnimation            parms 1
  142. function    SetAction            parms 1
  143. function    ResetAction            parms 1
  144. function    ResetAllAction            parms 0
  145. task        PushAnimation            parms 2
  146. task        PushControlAnimation        parms 2
  147. task        WaitAnimFrame            parms 2
  148. task        WaitPlayerAnimFrame        parms 2
  149. function    KillMyTasks            parms 0
  150. task        ObjectLineUp            parms 3
  151. task        ObjectParallelLineUp        parms 3
  152. task        ObjectPickupLineUp        parms 3
  153. task        LineUp                parms 3
  154. task        WaitLineUp            parms 1
  155. function    MoveAboveMe            parms 4
  156. function    KillMe                parms 0
  157. function    EndSound            parms 1
  158. function    EndMySounds            parms 0
  159. function    EndMySound            parms 1
  160. function    StopAllSounds            parms 0
  161. task        ViewGXA                parms 3
  162. task        AnimateGXA            parms 4
  163. function    PlayerOffset            parms 3
  164. multitask    PlayerOffsettask        parms 3
  165. function    Offset                parms 3
  166. function    UnOffset            parms 0
  167. task        BounceObject            parms 3
  168. function    OffsetLocation            parms 4
  169. function    DistanceToLocation        parms 1
  170. function    ShowBitmap                      parms 2
  171. function    UnShowBitmap            parms 1
  172. function    ReplenishHealth            parms 0
  173. function    InRectangle            parms 4
  174. function    InCircle            parms 3
  175. function    ScriptParticles            parms 8
  176. function    LightTorch            parms 0
  177. function    UnlightTorch            parms 0
  178. function    LoadStatic            parms 1
  179. function    UnLoadStatic            parms 0
  180. function    PointAt                parms 0
  181.  
  182. ; combat commands
  183.  
  184. function    beginCombat            parms 0
  185. function    endCombat            parms 0
  186. function    isFighting            parms 0
  187. function    isDead                parms 0
  188. function    adjustHealth            parms 2
  189. function    setHealth            parms 1
  190. function    health                parms 0
  191. function    adjustStrength            parms 1
  192. function    setStrength            parms 1
  193. function    strength            parms 0
  194. function    adjustArmor            parms 1
  195. function    setArmor            parms 1
  196. function    armor                parms 0
  197. function    shoot                parms 7
  198. function    shootPlayer            parms 4
  199. function    resurrect            parms 0
  200.  
  201. ; object script/task control
  202.  
  203. function    EnableObject            parms 0
  204. function    DisableObject            parms 0
  205. function    EnableTasks            parms 0
  206. function    DisableTasks            parms 0
  207. function    EnableScript            parms 0
  208. function    DisableScript            parms 0
  209. function    EnableHook            parms 0
  210. function    DisableHook            parms 0
  211. function    EnableCombat            parms 0
  212. function    DisableCombat            parms 0
  213.  
  214. ; rotational and positional reset commands
  215.  
  216. function    SetRotation            parms 3
  217. function    SetPosition            parms 3
  218. function    ResetRotation            parms 3
  219. function    ResetPosition            parms 3
  220. function    ReloadRotation            parms 0
  221. function    ReloadPosition            parms 0
  222. function    SetLocation            parms 1
  223.  
  224. ; master and slave commands
  225.  
  226. function    AttachMe            parms 1
  227. function    DetachMe            parms 0
  228. function    DetachSlaves            parms 0
  229. function    KillSlaves            parms 0
  230. function    HideSlaves            parms 0
  231. function    ShowSlaves            parms 0
  232. function    EnableSlaves            parms 0
  233. function    DisableSlaves            parms 0
  234. function    IsSlave                parms 0
  235. function    IsMaster            parms 0
  236. function    FixSlaveAngle            parms 2
  237.  
  238. ; player commands
  239.  
  240. function    PlayerMoved            parms 0
  241. function    PlayerTurned            parms 0
  242. function    PlayerTurnedDirection        parms 0
  243. function    PlayerMovementSpeed        parms 0
  244. function    GetMovementSpeed        parms 0
  245. function    PlayerHealth            parms 0
  246. function    PlayerStatus            parms 0
  247. function    PlayerCollide            parms 0
  248. function    PlayerStand            parms 0
  249. function    PlayerArmed            parms 0
  250. function    PlayerHanging            parms 0
  251. function    PlayerInSight            parms 0
  252. function    PlayerDistance            parms 0
  253. function    AcuratePlayerDistance        parms 0
  254. function    PlayerFacing            parms 2
  255. function    PlayerArcTan            parms 0
  256. function    PlayerArc            parms 2
  257. function    PlayerLooking            parms 1
  258. multitask    PlayerTilt            parms 3
  259. multitask    PlayerTiltRevx            parms 3
  260. function    PlayerSnap            parms 3
  261. task        PlayerLineUp            parms 3
  262. task        PlayerParallelLineUp        parms 3
  263. task        PlayerPickupLineUp        parms 3
  264. function    MovePlayerAboveMe        parms 4
  265. function    PushPlayer            parms 1
  266. function    PopPlayer            parms 0
  267. task        PlayerFaceObj            parms 0
  268. function    PlayerOnScape            parms 0
  269. function    PlayerCollideStatic        parms 0
  270. function    WonGame                parms 0
  271. function    MainloopExit            parms 1
  272. task        PlayerFaceTalk            parms 1
  273. function    PlayerForceTalk            parms 1
  274. function    CollidePlayerWeapon        parms 4
  275.  
  276. ; object and player health
  277.  
  278. function    ZapPlayer            parms 1
  279. function    ZapPlayerNoKill            parms 1
  280. function    ZapObject            parms 1
  281. function    ZapObjectNoKill            parms 1
  282.  
  283. ; object system messaging
  284.  
  285. function    SendMessage            parms 1
  286. function    ReceiveMessage            parms 0
  287. function    IsMessageWaiting        parms 0
  288. function    GetMessageSender        parms 0
  289. function    GetMessageSenderId        parms 0
  290. function    ReplySender            parms 1
  291. function    DeleteMessage            parms 0
  292. function    SendBroadcast            parms 1
  293. function    ReceiveBroadcast        parms 0
  294. function    DeleteBroadcast            parms 0
  295. function    IsBroadcastWaiting        parms 0
  296. function    GetBroadcastSender        parms 0
  297. function    GetBroadcastSenderId        parms 0
  298. function    ReplyBroadcastSender        parms 1
  299.  
  300. ; sync tasks and functions
  301.  
  302. function    ResetGroupSync            parms 0
  303. function    ResetUserSync            parms 0
  304. task        SyncWithGroup            parms 1
  305. task        SyncWithUser            parms 1
  306. function    ChangeGroup            parms 1
  307. function    ChangeUser            parms 1
  308.  
  309. ; pipelining functions
  310.  
  311. function    PipeMyGroup            parms 0
  312. function    PipeGroup            parms 1
  313. function    PipeUser            parms 1
  314. function    PipeMasters            parms 0
  315. function    PipeSlaves            parms 0
  316. function    PipeAroundMe            parms 1
  317. function    PipeAroundPos            parms 4
  318. function    PipeHidden            parms 0
  319.  
  320. ; node map negotiation
  321.  
  322. task        MoveNodeMarker            parms 2
  323. task        MoveNodeLocation        parms 2
  324. task        MoveNodePosition        parms 4
  325. function    AtNodeMarker            parms 2
  326. function    AtNodeLocation            parms 2
  327. function    AtNodePosition            parms 4
  328. function    Wander                parms 2
  329. function    DisableNodeMaps            parms 0
  330. function    EnableNodeMaps            parms 0
  331.  
  332. ; node marker negotiation
  333.  
  334. task        MoveMarker            parms 2
  335. task        MoveLocation            parms 2
  336. task        MovePosition            parms 4
  337.  
  338. ; weapons and hand-objects
  339.  
  340. function    DrawSword            parms 0
  341. function    SheathSword            parms 0
  342. function    CheckPlayerWeapon        parms 0
  343. function    DisplayHandModel        parms 4
  344. function    DisplayHandItem            parms 4
  345. function    DisplayHiltModel        parms 4
  346. function    DisplayHiltItem            parms 4
  347.  
  348. ; item's and the inventory
  349.  
  350. function    HandItem            parms 1
  351. function    HaveItem            parms 1
  352. function    RemoveItem            parms 1
  353. function    ItemUsed            parms 1
  354. function    PushItem            parms 2
  355. function    PopItem                parms 1
  356. function    AddItem                parms 2
  357. function    SubItem                parms 2
  358. function    DropItem            parms 2
  359. function    UseItem                parms 1
  360. function    ShowItem            parms 4
  361. function    ShowItemNoRtx            parms 3
  362. function    ActiveItem            parms 0
  363. function    PushAllItems            parms 1
  364. function    PopAllItems            parms 0
  365. function    DropAllItems            parms 0
  366. function    SelectItem            parms 1
  367.  
  368. ; general object queries
  369.  
  370. function    IsOnEdge            parms 0
  371. function    IsHoldingWeapon            parms 0
  372. function    IsSheathingSword        parms 0
  373. function    IsDrawingSword            parms 0
  374. function    IsDrawingOrSheathing        parms 0
  375. function    IsCarryingWeapon        parms 0
  376. function    IsCombatCapable            parms 0
  377. function    IsShellScript            parms 0
  378. function    IsWithinView            parms 0
  379. function    IsWithinMap            parms 0
  380. function    IsInAir                parms 0
  381. function    IsLightingOrUnlighting        parms 0
  382. function    IsUnlightingTorch        parms 0
  383. function    IsLightingTorch            parms 0
  384. function    IsInLava            parms 0
  385. function    IsInDeepWater            parms 0
  386. function    IsInWater            parms 0
  387. function    IsBouncing            parms 0
  388.  
  389. ; shell AI functions
  390.  
  391. function    OpenShell            parms 1
  392. function    CountAiShells            parms 1
  393. function    FindAiShell            parms 1
  394.  
  395. ; effects system
  396.  
  397. function    AddFlatEffect            parms 6
  398. function    AddLightEffect            parms 8
  399. function    GolemSteam            parms 0
  400. function    DragonBreath            parms 0
  401. multitask    DragonBreathTask        parms 0
  402.  
  403. ; Smacker functions
  404.  
  405. function    QueueMovie            parms 1
  406.  
  407. task        TestTask            parms 1
  408. function    XResetCamera            parms 0
  409.  
  410. ; Potion functions
  411.  
  412. function        SetPotion                       parms 2
  413. function        GetPotion                       parms 1
  414.  
  415. ; Log Book functions
  416.  
  417. function    AddLog                    parms 1
  418.  
  419. ; spare expansion functions, (do nothing at the moment)
  420.  
  421. function    Spare0Parm0            parms 0
  422. function    Spare1Parm0            parms 0
  423. function    Spare0Parm1            parms 1
  424. function    Spare1Parm1            parms 1
  425. function    Spare0Parm2            parms 2
  426. function    Spare1Parm2            parms 2
  427. function    Spare0Parm3            parms 3
  428. function    Spare1Parm3            parms 3
  429. function    Spare0Parm4            parms 4
  430. function    Spare1Parm4            parms 4
  431. function    Spare0Parm5            parms 5
  432. function    Spare1Parm5            parms 5
  433. function    Spare0Parm6            parms 6
  434. function    Spare1Parm6            parms 6
  435. function    Spare0Parm7            parms 7
  436. function    Spare1Parm7            parms 8
  437.  
  438.  
  439. [refs]
  440.  
  441. ; object references
  442.  
  443. address
  444. next
  445. list
  446. parent
  447. linked
  448. grid
  449. id
  450. name
  451. ftype
  452. sflags
  453. runtime_local_list
  454. runtime_locals
  455. extra
  456. object_data
  457. static_data
  458. loaded_matrix
  459. data
  460. header
  461. pos.vx
  462. pos.vy
  463. pos.vz
  464. slave_pos.vx
  465. slave_pos.vy
  466. slave_pos.vz
  467. last_slave_pos.vx
  468. last_slave_pos.vy
  469. last_slave_pos.vz
  470. start_pos.vx
  471. start_pos.vy
  472. start_pos.vz
  473. last_pos.vx
  474. last_pos.vy
  475. last_pos.vz
  476. last_valid_flag
  477. last_valid_pos.vx
  478. last_valid_pos.vy
  479. last_valid_pos.vz
  480. angle.vx
  481. angle.vy
  482. angle.vz
  483. slave_angle.vx
  484. slave_angle.vy
  485. slave_angle.vz
  486. last_slave_angle.vx
  487. last_slave_angle.vy
  488. last_slave_angle.vz
  489. start_angle.vx
  490. start_angle.vy
  491. start_angle.vz
  492. last_angle.vx
  493. last_angle.vy
  494. last_angle.vz
  495. move.vx
  496. move.vy
  497. move.vz
  498. ov.vx
  499. ov.vy
  500. ov.vz
  501. size
  502. location
  503. yangle_change
  504. rope
  505. rope_id
  506. rope_wait
  507. slide_flag
  508. fall_flag
  509. jump_flag
  510. extra_flag
  511. extra_time
  512. action_flag
  513. action
  514. action_time
  515. arms_time
  516. jump_time
  517. jump_height
  518. origin
  519. origin_time
  520. origin_accum
  521. last_direction
  522. move_counter
  523. last_collide
  524. last_collide_count
  525. under_object
  526. under_surface
  527. surface_time
  528. ai_type
  529. ai_mode
  530. ai_delay
  531. ai_var1
  532. ai_var2
  533. ai_length
  534. node_map
  535. node
  536. dnode
  537. fdnode
  538. weapon_drawn
  539. torch_timer
  540. hand_item
  541. hand_pos.vx
  542. hand_pos.vy
  543. hand_pos.vz
  544. hand_angle.vx
  545. hand_angle.vy
  546. hand_angle.vz
  547. grip[0]
  548. grip[1]
  549. scabbard[0]
  550. scabbard[1]
  551. sphere_object
  552. fsphere_heap
  553. fspheres
  554. active
  555. hide
  556. dead
  557. invisible
  558. combat
  559. light
  560. flat
  561. anim
  562. anim_list
  563. frame
  564. handle
  565. last_frame
  566. last_handle
  567. panic_group
  568. message_index
  569. broadcast_index
  570. anchor
  571. hook_data
  572. script_data
  573. script_int
  574. script_pc
  575. script_return
  576. script_rv
  577. script_ret_rv
  578. attribute
  579. local_index
  580. string_index
  581. disable_script
  582. task[0]
  583. task[1]
  584. task[2]
  585. task[3]
  586. task[4]
  587. task[5]
  588. task_variable[0]
  589. task_variable[1]
  590. task_variable[2]
  591. task_variable[3]
  592. task_variable[4]
  593. task_variable[5]
  594. task_status[0]
  595. task_status[1]
  596. task_status[2]
  597. task_status[3]
  598. task_status[4]
  599. task_status[5]
  600. task_pause[0]
  601. task_pause[1]
  602. task_pause[2]
  603. task_pause[3]
  604. task_pause[4]
  605. task_pause[5]
  606. task_timer[0]
  607. task_timer[1]
  608. task_timer[2]
  609. task_timer[3]
  610. task_timer[4]
  611. task_timer[5]
  612. task_variable2[0]
  613. task_variable2[1]
  614. task_variable2[2]
  615. task_variable2[3]
  616. task_variable2[4]
  617. task_variable2[5]
  618. task_variable3[0]
  619. task_variable3[1]
  620. task_variable3[2]
  621. task_variable3[3]
  622. task_variable3[4]
  623. task_variable3[5]
  624. task_variable4[0]
  625. task_variable4[1]
  626. task_variable4[2]
  627. task_variable4[3]
  628. task_variable4[4]
  629. task_variable4[5]
  630.  
  631. ; object's animation references
  632.  
  633. anim.address
  634. anim.current
  635. anim.next
  636. anim.next_speed
  637. anim.frame
  638. anim.speed
  639. anim.speed_count
  640. anim.stop_flag
  641. anim.halt_flag
  642. anim.hold_flag
  643. anim.rep_count
  644. anim.rewind_flag
  645. anim.loop_count
  646. anim.sound_handle
  647. anim.real_frame
  648. anim.max_group
  649. anim.pos.vx
  650. anim.pos.vy
  651. anim.pos.vz
  652. anim.angle.vx
  653. anim.angle.vy
  654. anim.angle.vz
  655. anim.last_angle.vx
  656. anim.last_angle.vy
  657. anim.last_angle.vz
  658.  
  659. ; object's size references
  660.  
  661. size.address
  662. size.orientation
  663. size.size.vx
  664. size.size.vy
  665. size.size.vz
  666. size.pos.vx
  667. size.pos.vy
  668. size.pos.vz
  669. size.psize.vx
  670. size.psize.vy
  671. size.psize.vz
  672. size.msize.vx
  673. size.msize.vy
  674. size.msize.vz
  675.  
  676.  
  677.  
  678. [equates]
  679.  
  680. ; equates section
  681. ; equates can be assigned numeric values or the value of a previously defined
  682. ; equate.
  683.  
  684.  
  685. ; object arrtibute equates
  686.  
  687. auto
  688.     attr_active
  689.     attr_collide
  690.     attr_strength
  691.     attr_health
  692.     attr_armor
  693.     attr_movement
  694.     attr_weight
  695.     attr_ymove
  696.     attr_user_flag = attr_ymove
  697.     attr_forward_speed
  698.     attr_backward_speed
  699.     attr_side_speed
  700.     attr_step_type
  701.     attr_forward_walk
  702.     attr_backward_walk
  703.     attr_combat
  704.     attr_turn_speed
  705.     attr_fight_lunge_speed
  706.     attr_fight_forward_speed
  707.     attr_fight_backward_speed
  708.     attr_fight_forward_walk
  709.     attr_fight_backward_walk
  710.     attr_fight_turn_speed
  711.     attr_fight_turn_accel
  712.     attr_weapon
  713.     attr_player_align
  714.     attr_master
  715.     attr_slave
  716.     attr_slave_type
  717.     attr_rotation
  718.     attr_group
  719.     attr_user
  720.     attr_jump_time
  721.     attr_jump_height
  722.     attr_no_slave_rot
  723.     attr_sheath_frame
  724.     attr_draw_frame
  725.     attr_ignore_own_matrix
  726.     attr_stop_y_rotate
  727.     attr_stop_x_rotate
  728.     attr_stop_z_rotate
  729.     attr_stop_x_move
  730.     attr_stop_y_move
  731.     attr_stop_z_move
  732.     attr_always_sync
  733.     attr_panic_group
  734.     attr_camera_move
  735.     attr_camera_pan_type
  736.     attr_camera_target_offset_x
  737.     attr_camera_target_offset_y
  738.     attr_camera_target_offset_z
  739.     attr_camera_offset_x
  740.     attr_camera_offset_y
  741.     attr_camera_offset_z
  742.     attr_camera_distance
  743.     attr_dialog_y
  744.     attr_no_collide
  745.     attr_no_sphere_object
  746.     attr_mass
  747.     attr_aggression
  748.     attr_combat_defense
  749.     attr_attack
  750.     attr_defend
  751.     attr_attack_skill
  752.     attr_defense_skill
  753.     attr_combat_allies
  754.     attr_combat_alignment
  755.     attr_combat_group
  756.     attr_weapon_type
  757.     attr_armor_type
  758.     attr_death_type
  759.     attr_attack_single
  760.     attr_attack_double
  761.     attr_attack_triple
  762.     attr_attack_thrust
  763.     attr_attack_lunge
  764.     attr_attack_low
  765.     attr_attack_jump_up
  766.     attr_attack_jump_forward
  767.     attr_attack_disarm
  768.     attr_defend_low
  769.     attr_defend_right
  770.     attr_defend_left
  771.     attr_defend_high
  772.     attr_fight_circle_speed
  773.     attr_fight_circle_delta_angle
  774.     attr_num_taunts
  775.     attr_hit_sound
  776.     attr_chatty
  777.     attr_twitch
  778.     attr_stick_to_surface
  779.     attr_node_idle
  780.     attr_node_climbs
  781.     attr_node_jumps
  782.     attr_node_run
  783.     attr_node_in_use            ; !!! reserved for internal use do not change in script !!!
  784.     attr_node_ignore_in_sight
  785.     attr_damage
  786.     attr_npc
  787.     attr_bounce_power
  788.     attr_bounce_move
  789.     attr_bounce_turn
  790.     attr_boat_rock_align
  791.     attr_v_weapon
  792.     attr_light_frame
  793.     attr_unlight_frame
  794.     attr_player_type
  795.     attr_special_activate
  796.     attr_fall_hold
  797.     attr_fall_damage
  798.     attr_zap_anim
  799.     attr_holding_weapon
  800.     attr_reload_type
  801.     attr_no_continue
  802.     attr_short_mapping
  803.     attr_no_view_manage
  804.     attr_reserved_weight
  805.     attr_no_node_combat
  806.     attr_lock_pos
  807.     attr_woman
  808.     attr_reserved_collide
  809.     attr_invulnerable
  810.     attr_combat_ignore_in_sight
  811.     attr_non_moving
  812.     attr_combat_long_sight
  813.     attr_combat_radius_weapon
  814.     attr_mess_group
  815.     attr_combat_radius_vhit
  816. endauto
  817.  
  818.  
  819. ; general equates
  820.  
  821. false                    0
  822. true                    1
  823. no                    false
  824. yes                    true
  825. off                    false
  826. on                     true
  827.  
  828. ; axis equates for ..ByAxis tasks
  829.  
  830. axis_x                    0
  831. axis_y                    1
  832. axis_z                    2
  833. x                    axis_x
  834. y                    axis_y
  835. z                    axis_z
  836.  
  837. ; numerical equates (for multiplication to world units)
  838.  
  839. degrees                    6
  840.  
  841.  
  842. ; animation groups
  843.  
  844. auto
  845.  
  846. ; idles and panic groups
  847.  
  848.     anim_panic
  849.     anim_idle1
  850.     anim_idle2
  851.     anim_idle3
  852.     anim_idle_hurt
  853.     anim_idle_torch
  854.     anim_idle_rope
  855.     anim_idle_ledge
  856.     anim_fight_panic
  857.  
  858. ; misc (low priority)
  859.  
  860.     anim_misc0
  861.     anim_misc1
  862.     anim_misc2
  863.     anim_misc3
  864.     anim_misc4
  865.  
  866. ; turns
  867.  
  868.     anim_turn_left
  869.     anim_turn_right
  870.     anim_turn_left_torch
  871.     anim_turn_right_torch
  872.  
  873. ; simple movements
  874.  
  875.     anim_run
  876.     anim_run_forward = anim_run
  877.     anim_run_backward
  878.     anim_walk
  879.     anim_walk_forward = anim_walk
  880.     anim_walk_forward_torch
  881.     anim_walk_backward
  882.     anim_walk_backward_torch
  883.     anim_step_left
  884.     anim_step_left_torch
  885.     anim_step_right
  886.     anim_step_right_torch
  887.     anim_shimmy_left_ledge
  888.     anim_shimmy_right_ledge
  889.     anim_run_torch
  890.     anim_fight_run
  891.  
  892. ; falling and jumping
  893.  
  894.     anim_jump_start
  895.     anim_jump_start_torch
  896.     anim_jump_run_start
  897.     anim_jump_right_start = anim_jump_run_start
  898.     anim_jump_right_start_torch
  899.     anim_jump_left_start
  900.     anim_jump_left_start_torch
  901.     anim_jump_torch
  902.     anim_jump
  903.     anim_jump_up = anim_jump
  904.     anim_jump_up_arms
  905.     anim_jump_forward_torch
  906.     anim_jump_forward
  907.     anim_jump_forward_arms
  908.     anim_jump_run
  909.     anim_jump_right = anim_jump_run
  910.     anim_jump_right_torch
  911.     anim_jump_left
  912.     anim_jump_left_torch
  913.     anim_jump_run_arms
  914.     anim_jump_backward
  915.     anim_jump_spin = anim_jump_backward
  916.     anim_jump_backward_torch
  917.     anim_jump_off_rope
  918.     anim_jump_off_rope_sword
  919.     anim_jump_draw_sword
  920.     anim_attack_jump_up
  921.     anim_attack_jump_forward
  922.     anim_fall
  923.     anim_fall_torch
  924.     anim_fall_up_arms
  925.     anim_fall_run
  926.     anim_fall_right = anim_fall_run
  927.     anim_fall_right_torch
  928.     anim_fall_left
  929.     anim_fall_left_torch
  930.     anim_fall_backward
  931.     anim_fall_backward_torch
  932.  
  933. ; land groups
  934.  
  935.     first_land_group
  936.     anim_land = first_land_group
  937.     anim_land_torch
  938.     anim_land_run
  939.     anim_land_right = anim_land_run
  940.     anim_land_right_torch
  941.     anim_land_left
  942.     anim_land_left_torch
  943.     anim_land_backward
  944.     anim_land_backward_torch
  945.     anim_land_hurt
  946.     anim_land_death
  947.     last_land_group = anim_land_death
  948.  
  949. ; slides
  950.  
  951.     anim_slide
  952.     anim_slide_down = anim_slide
  953.     anim_slide_forward = anim_slide
  954.     anim_slide_backward
  955.     anim_slide_forward_torch
  956.     anim_slide_backward_torch
  957.  
  958. ; ropes
  959.  
  960.     anim_rope_panic
  961.     anim_rope_swing_forward
  962.     anim_rope_swing_back
  963.     anim_rope_up
  964.     anim_rope_down
  965.     anim_rope_grab
  966.     anim_rope_jump
  967.  
  968. ; ledges and hand-plants
  969.  
  970.     anim_pull_up_ledge
  971.     anim_drop_off_ledge
  972.     anim_swing_ledge
  973.     anim_grab_ledge
  974.     anim_hand_plant_ledge
  975.  
  976. ; combat
  977.  
  978.     anim_draw_sword
  979.     anim_fight_forw
  980.     anim_fight_forward = anim_fight_forw
  981.     anim_fight_back
  982.     anim_fight_backward = anim_fight_back
  983.     anim_fight_circle_left
  984.     anim_fight_circle_right
  985.     anim_fight_turn_left
  986.     anim_fight_turn_right
  987.     anim_defend_low
  988.     anim_defend = anim_defend_low
  989.     anim_defend_right
  990.     anim_defend_left
  991.     anim_defend_high
  992.     anim_attack_1
  993.     anim_attack_2
  994.     anim_attack_3
  995.     anim_attack_thrust
  996.     anim_attack_thrust_start = anim_attack_thrust
  997.     anim_attack_lunge
  998.     anim_attack_1_end
  999.     anim_attack_2_end
  1000.     anim_fight_disarm
  1001.     anim_attack_low
  1002.     anim_fight_jump_start
  1003.     anim_fight_jump
  1004.     anim_fight_fall
  1005.     anim_fight_land
  1006.     anim_fight_fall_attack
  1007.     anim_fight_land_attack
  1008.     anim_fight_hurt_1
  1009.     anim_hit_attack = anim_fight_hurt_1
  1010.     anim_fight_hurt_2
  1011.     anim_fight_hurt_front
  1012.     anim_fight_hurt_back
  1013.     anim_death_fight_stab
  1014.     anim_death_fight_hard
  1015.     anim_death_fight_stab_end
  1016.     anim_death_fight_hard_end
  1017.     anim_death_fight_front
  1018.     anim_death_fight_back
  1019.     anim_death_fight_front_end
  1020.     anim_death_fight_back_end
  1021.     anim_sheath_sword
  1022.     anim_fight_land_right
  1023.     anim_fight_land_left
  1024.     anim_explore_hurt_1
  1025.     anim_explore_hurt_2
  1026.     anim_death_explore
  1027.  
  1028. ; flask groups
  1029.  
  1030.     anim_flask_panic
  1031.     anim_draw_flask
  1032.     anim_sheath_flask
  1033.     anim_catch_spell
  1034.     anim_charge_flask
  1035.     anim_shoot_flask
  1036.  
  1037. ; swimming groups
  1038.  
  1039.     anim_swim_idle
  1040.     first_swim_group = anim_swim_idle
  1041.     anim_swim_forward
  1042.     anim_swim_backward
  1043.     last_swim_group = anim_swim_backward
  1044.  
  1045. ; special movements
  1046.  
  1047.     anim_pickup
  1048.     anim_pull_lever_down
  1049.     anim_pull_lever_up
  1050.     anim_turn_lever_left
  1051.     anim_turn_lever_right
  1052.     anim_light_torch
  1053.     anim_unlight_torch
  1054.     anim_light_with_torch
  1055.  
  1056. ; speech
  1057.  
  1058.     anim_still
  1059.     anim_talk1
  1060.     anim_talk2
  1061.     anim_talk3
  1062.  
  1063. ; misc (high priority)
  1064.  
  1065.     anim_misc5
  1066.     anim_misc6
  1067.     anim_misc7
  1068.     anim_misc8
  1069.     anim_misc9
  1070.     anim_misc10
  1071.     anim_misc11
  1072.     anim_misc12
  1073.     anim_misc13
  1074.     anim_misc14
  1075.     anim_misc15
  1076.     anim_misc16
  1077.     anim_misc17
  1078.     number_anim_groups
  1079. endauto
  1080.  
  1081.  
  1082. ; animation types
  1083.  
  1084. animtype_stop                0
  1085. animtype_no_stop            1
  1086. animtype_no_panic            2
  1087. anim_stop                0
  1088. anim_no_stop                1
  1089. anim_no_panic                2
  1090.  
  1091. ; return codes for the function PlayerStatus()
  1092.  
  1093. auto
  1094.     ps_idle
  1095.     ps_jump
  1096.     ps_jump_forward
  1097.     ps_jump_run_forward
  1098.     ps_jump_backward
  1099.     ps_fall_forward
  1100.     ps_fall_run_forward
  1101.     ps_fall_backward
  1102.     ps_sliding
  1103.     ps_start_pull_up
  1104.     ps_pull_up
  1105.     ps_draw_sword
  1106.     ps_sheath_sword
  1107.     ps_ledge_start_pull_up
  1108.     ps_ledge_pull_up
  1109.     ps_run_forward
  1110.     ps_run_backward
  1111.     ps_step_left
  1112.     ps_step_right
  1113.     ps_walk_forward
  1114.     ps_walk_backward
  1115.     ps_moving
  1116. endauto
  1117.  
  1118. ; ai types
  1119.  
  1120. at_none                    0
  1121. at_find_player                1
  1122. at_wander                2
  1123. at_player_in_sight            3
  1124. at_find_location            4
  1125. at_location_in_sight            5
  1126.  
  1127. ; ai modes
  1128.  
  1129. ai_none                     0
  1130. ai_turn_to                1
  1131. ai_move_to                2
  1132. ai_turn_nearest                 3
  1133. ai_move_nearest                 4
  1134. ai_find_player                5
  1135. ai_player_turn_to            6
  1136. ai_player_move_to            7
  1137. ai_find                    8
  1138. ai_idle                    9
  1139. ai_find_location            10
  1140.  
  1141. ; actions
  1142.  
  1143. action_jump_right            1
  1144. action_jump_left            2
  1145. action_jump                1
  1146. action_fall                4
  1147. action_forward                8
  1148.  
  1149. ; collision flags set in object reference last_collide. The last_collide property is a bit-field, so to see if the object
  1150. ; failed to move left for example use 'if object.last_collide & cf_check_left_fail <> 0'. this if statement will continue
  1151. ; if the cf_check_left_fail flag was set.
  1152.  
  1153. cf_slide_off_wall            1
  1154. cf_hit_wall                2
  1155. cf_polygon_push_out            4
  1156. cf_last_valid_set            8
  1157. cf_validate_slope_fail            16
  1158. cf_check_left_fail            32
  1159. cf_check_right_fail            64
  1160. cf_check_forward_fail            128
  1161. cf_check_backward_fail            256
  1162. cf_check_run_forward_fail        512
  1163. cf_managed_collision            1024
  1164. cf_validate_forward_failed        2048
  1165. cf_premeture_jump_end            4096
  1166. cf_premeture_fall            8192
  1167. cf_cross_polygon_push            16384
  1168.  
  1169. ; player type flags for use with the attr_player_type attribute
  1170.  
  1171. ply_cyrus                0
  1172. ply_gremlin                1
  1173. ply_crossbow                2
  1174.  
  1175. ; error return codes
  1176.  
  1177. auto
  1178.     err_no_error
  1179.     err_task_not_completed
  1180.     err_destination_node_not_found
  1181.     err_destination_not_in_sight
  1182.     err_not_on_node_map
  1183.     err_collide
  1184. endauto
  1185.  
  1186. ; reload types for attr_reload_type
  1187.  
  1188. auto
  1189.     rld_none
  1190.     rld_hide
  1191.     rld_resurrect
  1192.     rld_kill
  1193. endauto
  1194.  
  1195.  
  1196. ; global flags
  1197.  
  1198. [flags]
  1199.  
  1200. ;"Overall gamestate" flags
  1201. number        timeofday        1        ;1 day, 28 is sunset, 27 is night
  1202. bool        after_catacombs        0        ;Cyrus has been through the catacombs
  1203. bool        after_league        0        ;Cyrus has been to the league(Act2)
  1204. bool        gremlin            0        ;Cyrus is gremlin
  1205. bool        after_jail        0        ;Cyrus is out of the jail/chase section
  1206. bool        after_iszara        0        ;Cyrus has rescued Iszara (Act3)
  1207. bool        after_dragon        0        ;dragon is dead
  1208. bool        in_palace        0        ;Cyrus is in the palace at the end
  1209. bool        won_game        0        ;killed richton game over!! YOU WIN!!! Yeh..uh..wait
  1210.  
  1211.  
  1212. ; "Have" flags
  1213. bool        have_gear        false
  1214. bool        have_blessing        false
  1215. bool        have_drbook        false
  1216.  
  1217.  
  1218. ; "Dialog" flags    KEN SAYS: PLEASE PUT NEW GLOBALS HERE IN ALPHABETICAL ORDER OR YOU BUY THE DONUTS WHEN DOUBLE VARIABLES PREVENT COMPILING!
  1219. ;            ANDY SAYS: BLAH BLAH BLAH, FUCK ! MY LEFT LEG JUST FELL OFF
  1220.  
  1221. bool    AfterTrap            FALSE    ;TRUE after Brennan's Trap dialog
  1222. bool    AmuletDone            FALSE    ;TRUE after Cyrus delivers amulet to Richton, BETTER to use after_catacombs
  1223. bool    AmuletJob            FALSE    ;TRUE after Cyrus accepts job from Kotaro
  1224. bool    asked_once            FALSE    ;TRUE after Cyrus asks one question of either guard in vile's realm
  1225. bool    BasilTalk            FALSE    ;TRUE after beginning of first dialog with basil
  1226. bool    BrennanWarn            FALSE    ;TRUE after someone warns you of Brennan's Trap
  1227. bool    BrennanTrap            FALSE
  1228. bool    Brennandead            false    ;true
  1229. bool    CoyleFriend            FALSE    ;TRUE after Cyrus has befriended Coyle    -- KEN: see CyrusFriend -- could be a screwup
  1230. bool    Crowns_G            FALSE    ;sets like local crowns flag in Dreekius
  1231. bool    crendalflask            FALSE    ;TRUE after Crendal reveals he has Trithik's map piece
  1232. bool    crendalmap            false     ;TRUE after Trithik tells Cyrus what's on his map piece
  1233. bool    CyCynic                FALSE    ;TRUE after Cyrus acts cynical about Hammerfell's fate in front of Dreekius
  1234. bool    CyNoGrem            FALSE    ;TRUE after Cyrus is changed back from gremlin to Cyrus
  1235. bool    CyrusFriend            FALSE    ;TRUE after Cyrus is friends with Coyle    -- KEN: have replaced CYRUSFRIEND wiht CoyleFriend in Saban, Coyle, GC_rock1, GC_rock2
  1236. bool    DragonDead            FALSE    ;TRUE after Nafaalilargus is dead
  1237. bool    Dram_appears            FALSE    ;TRUE to have Dram appear and shoot Joto in the jail. can be used for more...
  1238. bool    DreekCro            FALSE    ;TRUE when Dreekius tells you what he knows about the Crowns during Tobias' dialogue
  1239. bool    DreekImp            FALSE    ;TRUE when Dreekius tells you about the Imperials' list of dissidents during Tobias' dialogue
  1240. bool    DreekiusName            FALSE    ;TRUE when Cyrus knows Dreekius' name
  1241. bool    DreekiusTalk            FALSE    ;TRUE after you first talk to Dreekius
  1242. bool    DreekOcc            FALSE    ;TRUE when Dreekius tells you what he knows about the Imperial Occupation during Tobias' dialogue
  1243. bool    DreekSister            FALSE    ;TRUE when Dreekius tells you what he knows about Iszara
  1244. bool    EnterCaverns            FALSE    ;TRUE if Cyrus has been in the Caverns
  1245. bool    EyePieceFound            FALSE
  1246. bool    EyePieceLost            FALSE
  1247. bool    Fatboy                FALSE    ;TRUE after someone explains that Fatboy = Richton
  1248. bool    FavisHelp            FALSE
  1249. bool    Favis_BELL            FALSE   ;favis tells cyrus about broken bell, and bell.scr can be activated
  1250. bool    FavisPrnellPal            FALSE
  1251. bool    FixBell                FALSE
  1252. bool    FlagshipStory            FALSE    ;TRUE after someone tells you the League blew up Richton's flagship
  1253. bool    FlaskFalicia            FALSE    ;TRUE after Falicia tells Cyrus what she knows about the Flask of Lillandril
  1254. bool    Flaskstart            false     ;TRUE after you read the book about the Flask, or ask J'ferr about it or if Joto tells you about it during Scene Five, "The Soulgem"
  1255. bool    GremlinSolve            false    ;true after cyrus is able to say change me back to anyone
  1256. bool    GypsyHelp            FALSE    ;TRUE after you agree to help solve Saban's problem
  1257. bool    GypsySolve             false
  1258. bool    HaveAmulet            FALSE    ;TRUE when Cyrus has the Amulet
  1259. bool    HaveGear            FALSE    ;TRUE when Cyrus has Dwarven gear
  1260. bool    HaveGem                FALSE    ;TRUE when Cyrus has soulgem
  1261. bool    HaveInsignia            FALSE
  1262. bool    HaveLocket            FALSE    ;TRUE when Cyrus has Lakene's Locket
  1263. bool    HaveRing            FALSE    ;TRUE when Cyrus has Voa's Ring
  1264. bool    HayleStory            FALSE
  1265. bool    HiToFavis            FALSE
  1266. bool    HiToSiona            FALSE    ;TRUE after Tobias tells you to see Siona
  1267. bool    Imperials_G            FALSE    ;sets like local imperials flag in Dreekius
  1268. bool    IszaraMetHayle            FALSE
  1269. bool    Journal                FALSE
  1270. bool    jotoinjail            FALSE
  1271. bool    killbrennan            false    ;set when Brennan is dead
  1272. bool    KithJournal            FALSE    ;TRUE after Cyrus has read Kithral's Journal
  1273. bool    KnowBody            FALSE    ;TRUE when Cyrus knows Prince A'tor's body is at the Temple and covered in the stasis field
  1274. bool    KnowsJaganvir            FALSE    ;TRUE when Cyrus knows from Avik or Falicia that Jaganvir is the new archmage
  1275. bool    KotaroTalk            FALSE
  1276. number    KrisGuardsKill            0    ;number of Cyrus kills the guards in Krisandra's house, should equal 2 before she happy
  1277. bool    KrisGuardsSee            FALSE    ;TRUE after Cyrus enters Krisandra's house while guards are searching it (only after FlaskStart = TRUE)
  1278. bool    LakeneDen            FALSE    ;TRUE after someone tells Cyrus that Lakene knows about SD. (Krisandra, Favis?)
  1279. bool    LakeneMove            FALSE    ;TRUE when Cyrus confronts Lakene and he moves
  1280. bool    LakeneTalk            FALSE    ;TRUE after Cyrus talks to Lakene
  1281. bool    Makemap                false    ;true after cyrus gives maiko the elven book, used to trigger maiko to start map working anim
  1282. bool    Mapfin                FALSE    ;true after counter finishes, used to time maiko working on map for cyrus
  1283. bool    MariahTellIszara        FALSE    ;TRUE if Mariah tells you she saw Iszara at Maiko's
  1284. bool    NecroDone            FALSE    ;TRUE after Cyrus completes the amulet delivery under the auspice of N'gasta rather than Kotaro
  1285. bool    NecroJob            FALSE    ;TRUE after Cyrus accepts amulet job from N'gasta instead of Kotaro
  1286. bool    NeedFixObserv            FALSE    ;TRUE after Erasmo tells Cyrus that observatory must be fixed.
  1287. bool    NeedPassword            FALSE    ;TRUE after someone tells you that you need a password to get into Smuggler's Den (SmugglersDen is true and knock on door)
  1288. bool    NeedProof            FALSE
  1289. bool    NewCombs            FALSE    ;TRUE when Cyrus enters the second part of the Catacombs
  1290. bool    NidalKnow            FALSE
  1291. bool    NidalTalk            FALSE    ;TRUE if player has spoken with Nidal [set in Brother Nidal; referenced in Tobias]
  1292. bool    Occupation_G            FALSE    ;sets like local occupation flag in Dreekius
  1293. bool    ObservFixed            FALSE    ;TRUE after Cyrus fixes the observatory
  1294. bool    OpenDoor            FALSE    ;TRUE after the Door to the Dwarven Ruins is opened
  1295. bool    Open_journal            false    ; true after cyrus opens iszara*s journal
  1296. bool    Password            FALSE    ;TRUE after someone tells you the password to the Smuggler's Den
  1297. bool    PrnellFriend            FALSE
  1298. bool    flag_picked_up            FALSE    ;when false; show Prnell's harbor tower redflag [xflag.scr]; when true, hide redflag
  1299. bool    Put_flag_back            false    ;prnell allows cy to put flag back
  1300. bool    pullbellrope            false    ;Cyrus tries to pull bell rope, and Favis says DON'T TRY IT!
  1301. bool    RolloAnnoy            FALSE
  1302. bool    RolloDen            FALSE    ;TRUE after someone tells Cyrus that Rollo knows about Smuggler's Den. (Krisandra, Lakene, Favis?)
  1303. bool    RolloHate            FALSE
  1304. bool    RolloLocket            FALSE    ;TRUE after Lakene tells you Rollo has his wife's locket
  1305. bool    RolloTalk            FALSE
  1306. bool    SabanCanHelp            FALSE    ;TRUE when Cyrus knows Saban can help him out (thus GypsyHelp=TRUE)
  1307. bool    SabanSeeTruth            FALSE    ;
  1308. bool    SeeBrennan            FALSE    ;TRUE after someone tells you Brennan is looking for you
  1309. bool    SeeCrendal            FALSE    ;TRUE if Dreekius tells you that Crendal has a piece of the map- opens up "map" inquiry in Crendal's dialogue
  1310. bool    SeenDoor            FALSE    ;TRUE when Cyrus sees the Door to the Dwarven Ruins
  1311. bool    SionaFriend            FALSE    ;TRUE after Siona becomes your friend (by you telling her Tobias is your friend)
  1312. bool    SmugglersDen            FALSE    ;TRUE after someone tells you about the Smuggler's Den (Siona, Mariah, Gerrick, Prnell)
  1313. bool    SoulSnare            FALSE
  1314. bool    Spoke_with_Kotaro        FALSE    ;TRUE after Cyrus has spoken with Kitaro at least once
  1315. bool    stop_talk            FALSE    ;disables dialog activation for Basil while Vandar fights
  1316. bool    take_flag            FALSE    ;lets cyrus take prnell's flag
  1317. bool    talking                FALSE    ;we set this when cyrus is in dialog
  1318. bool    TavernBrawl            FALSE    ;TRUE if Cyrus has gotten into a fight with the Forebears at the Draggin Tale.
  1319. bool    TempleVisit            FALSE    ;TRUE if Cyrus has been to the Temple
  1320. bool    TirbInJail            FALSE
  1321. bool    TobiasLeave            FALSE    ;TRUE after Tobias leaves and Cyrus had known previously that he planned to leave (not the same as ActTwo=TRUE)
  1322. bool    TobiasTalk            FALSE    ;TRUE after you first talk to Tobias
  1323. bool    trithikboat            false     ;TRUE after Lakene mentions Trithick's boat needs fixing.
  1324. bool    trithikmap            false     ;TRUE after Trithik tells Cyrus that someone stole his map piece
  1325. bool    UseTelescope            FALSE
  1326. bool    vandarfight            false    ;true after cyrus and vandar fight
  1327. bool    weight1_down            false    ;weight1 for catacomb weight puzzle
  1328. bool    weight2_down            false    ;weight2 for catacomb weight puzzle
  1329. bool    weight3_down            false    ;weight3 for catacomb weight puzzle
  1330. bool    WORKMAP                FALSE    ;true if makemap is true when cyrus leaves cartographers
  1331. bool    Wounded                FALSE    ;TRUE if Cyrus is wounded
  1332.  
  1333. ; "Equipped" flags (at least temporarily, until this is functional in SOUP)
  1334. bool        equipped_torch        false
  1335. bool        equipped_key_bone    false
  1336. bool        equipped_key_palace    false
  1337. bool        digging            false    ;set when cyrus is digging
  1338. bool        dig_item_found        false    ;set if something is found when digging
  1339. bool        HoldingFlag        false    ;shen cyrus is holding flag
  1340. bool        torch            false    ;true when cyrus has torch out
  1341.  
  1342. ; "Catacomb flags"
  1343. flipflop    ctblock1        false
  1344. flipflop    ctblock2        false
  1345. flipflop    ctdoor01        false
  1346. flipflop    ctdoor02        false
  1347. flipflop    ctdoor58        false
  1348. flipflop    ctdoor73        false
  1349. flipflop    ctdoor86        false
  1350. flipflop    ctrot86             false
  1351. flipflop    ctpad01            false
  1352. flipflop    ctpad02            false
  1353. flipflop    ctpad03            false
  1354. flipflop    ctpad04            false
  1355. flipflop    ctpada1            false
  1356. flipflop    ctruned             false
  1357. flipflop    ctcount             false
  1358. number        ctcounter        false
  1359. number        ctcounter2        false
  1360. number        ctrack            0
  1361. number        ctrakdor        0
  1362. flipflop    ctlock01        false
  1363. flipflop    ctlock02        false
  1364. number        ctweight        0
  1365. flipflop    ctwpad01        false
  1366. flipflop    ctwpad02        false
  1367. flipflop    ctwpad03        false
  1368. flipflop    ctwpad04        false
  1369. flipflop    ctwpad05        false
  1370. flipflop    ctwpad06        false
  1371. flipflop    ctwpad07        false
  1372. flipflop    ctwpad08        false
  1373. flipflop    ctwblade        false
  1374. flipflop    ctwdoor1        false
  1375. flipflop    ctskey            false
  1376. flipflop    ctstop            false
  1377. bool        ct_fire             false
  1378. bool        CatacombsFoundStuff     false
  1379. bool        scene2             false
  1380. bool        scene9            false
  1381. bool        Cyrus_face_gem        false
  1382. bool        dragon_face_gem        false
  1383. bool        Cyrus_face_dragon       false
  1384. bool        braze_fire           false
  1385.  
  1386.  
  1387. ; "cavern flags"
  1388. bool        cv_lock1        false
  1389. bool        cv_lock2        false
  1390. bool        cv_dor01        false
  1391. bool        cv_gear1        false
  1392. bool        cv_gate1        false
  1393. bool        cv_pillarA1        false
  1394. bool        cv_pillarA2        false
  1395. bool        cv_pillarB1        false
  1396. bool        cv_pillarB2        false
  1397. bool        cv_pillarC1        false
  1398. bool        cv_pillarC2        false
  1399. flipflop    cv_river        false
  1400. BOOL        CV_PILLARA        FALSE
  1401. BOOL        CV_PILLARB        FALSE
  1402. bool        cv_pillarC        false
  1403. bool        cv_skull        false
  1404. bool        cv_ship            false
  1405. bool        cv_sword        false
  1406. bool        cv_arm            false
  1407. bool        cv_main_door        false
  1408. FLIPFLOP    CV_BAIT            FALSE
  1409. bool        cv_crack        false    ;opens crack to secret brazier
  1410.  
  1411. ; "Observatory flags"
  1412. number        ob_telv            1
  1413. number        ob_telh            12
  1414. BOOL        OB_PLATFORM        FALSE
  1415. BOOL        OB_arms            FALSE
  1416. bool        ob_plt_up        false
  1417. bool        ob_plt_move        false
  1418. bool        ob_look            false
  1419. bool        ob_stepup        false
  1420. bool        ob_stepdown        false
  1421. bool        ob_fixed        false
  1422. bool        ob_elevator        false
  1423. bool        ob_lift            false
  1424. number        ob_lever        0
  1425.  
  1426. bool        kurttest1        false
  1427. bool        kurttest2        false
  1428. bool        ob_engine        false
  1429.  
  1430. flipflop    pi_pot            false
  1431. bool        pi_pig            false
  1432. bool        pi_crane        false
  1433. bool        pi_door1        false
  1434. bool        pi_door2        false
  1435. bool        pi_door3        false
  1436. bool        pi_door4        false
  1437. bool        pi_door5        false
  1438. flipflop    pi_platform        false
  1439. flipflop    pi_throneA        false
  1440. flipflop    pi_throneB        false
  1441. flipflop    pi_throneC        false
  1442. FLIPFLOP    PI_THRONED        FALSE
  1443. NUMBER        PALACEGUARDSDEAD     0    ;for scene1, counts dead guards
  1444. BOOL        DRAMSHOOTCYRUS        FALSE    ;for scene1, makes dram shoot cyrus and knock him out
  1445. bool        PIOnBlimp         false
  1446.  
  1447.  
  1448.  
  1449. ;"NECROMANCER'S FLAGS"
  1450. flipflop    ncdoor1            false
  1451. bool        open_ncgate        false
  1452. flipflop    nchead            false
  1453. bool        close_ncdoort1        false
  1454. bool        nc_view_skeleton    false
  1455. bool        at_shoals         true        ;these are for the boatman's state
  1456. bool        at_isle         false
  1457. bool        to_isle         false
  1458. bool        to_shoals         false
  1459. bool        nc_pour_elixir        false
  1460. bool        nc_explosion        false
  1461. bool        cyrus_at_gate        false    ;is true when cyrus arives at tower gate
  1462. bool        SerpentDead        false    ;when serpent is dead
  1463. BOOL        SCENE6            FALSE    ;start "The Fate of Iszara" ingame cutscene
  1464. bool        NgastaFight        false
  1465. bool        scene6_door        false   ; true when the door is closed; playerlineup with iszara; start iszara dialog; from iszara.scr to scene6
  1466.  
  1467. ;"DWARVEN RUINS FLAGS"
  1468. bool        DRarrowLoaded         false
  1469. NUMBER        DR_STEAM        0
  1470. bool        dr_boiler        false
  1471. bool        dr_boiler_move        false
  1472.  
  1473. bool        dr_pipe1        false
  1474. bool        dr_pipe2        false
  1475. bool        dr_pipe3        false
  1476. bool        dr_pipe4        false
  1477. bool        dr_pipe5        false
  1478. bool        dr_pipe6        false
  1479. bool        dr_flower1        false
  1480. bool        dr_flower2        false
  1481. bool        dr_flower3        false
  1482. bool        dr_flower4        false
  1483. bool        dr_flower5        false
  1484. bool        dr_flower6        false
  1485. bool        dr_slider2        false
  1486. bool        dr_slider1        false
  1487. number        dr_output1        0
  1488. number        dr_output2        0
  1489. number        dr_output3        0
  1490. number        dr_output4        0
  1491. number        dr_output5        0
  1492. number        dr_output6        0
  1493. number        dr_output7        0
  1494. number        dr_output8        0
  1495.  
  1496. number        dr_steam_done        0
  1497. bool        dr_trigger1        false
  1498. bool        dr_trigger2        false
  1499. bool        dr_door1        false
  1500. bool        dr_door1a        false
  1501. bool        dr_door2        false
  1502. bool        dr_door2a        false
  1503. bool        dr_mask            false
  1504. number        dr_doorA        0
  1505. bool        dr_doorB        false
  1506. bool        dr_doorC        false
  1507. bool        dr_loader        false
  1508. flipflop    dr_laserfire        false
  1509. bool        dr_robot        false
  1510. bool        dr_golem_dead        false
  1511. bool        dr_dorb            false
  1512. bool        dr_bridge        false
  1513. bool        open_drdoor        false
  1514. bool        dr_exdra        false
  1515.  
  1516. flipflop    dr_scarab_turn        false
  1517. bool        dr_scarab_done        false
  1518.  
  1519. number        scb_position        0
  1520. number        scb_armL        0
  1521. number        scb_armR        0
  1522. bool        scb_head        false
  1523. flipflop    scb_legs        false
  1524. bool        scb_spikes        false
  1525. number        scb_door        0
  1526. flipflop    scb_chnL        false
  1527. flipflop    scb_chnR        false
  1528. number        scb_chnM        0
  1529. bool        scb_hndL        0
  1530. bool        scb_hndR        0
  1531. bool        CampDirgFlyAway        false
  1532.  
  1533.  
  1534. ;"Vile's Realm flags"
  1535. bool        vr_door1_activate    false
  1536. bool        vr_door2_activate    false
  1537. bool        vr_gard1_activate    false
  1538. bool        vr_gard2_activate    false
  1539. bool        vr_doors_activate    false
  1540. bool        talk_now        false         ;toggle for vilechat crates -- vile comments while exploring
  1541. bool        dog_dialog        false         ;turns off dog morphing for Vile's dialog dog reference
  1542. bool        end_vile        false         ;shifts control from guards to Vile end puzzle dialog
  1543. bool        wrong_door        false         ;Vile dialog after puzzle lose
  1544. BOOL        RIGHT_DOOR        FALSE         ;Vile dialog after puzzle win
  1545. bool        vile_choose_right     false         ;true if you ask right question and choose right door
  1546.  
  1547. ;"Hideout flags"
  1548. bool        hi_ride            false
  1549. bool        sailed_in            false
  1550. number          dead_marine             0               ;to determine when all guards are dead
  1551. bool            show_marine             false           ;to show marines on boat
  1552. bool            dooropen             false           ;when hi_door.scr gets right key, opens door through hi_doorx.scr
  1553. number          strike_counter             0            ;if Cyrus activates locked doors or picks fights, three strikes = battles
  1554.  
  1555. ;"Menu flags"
  1556. number         menuRet            0
  1557. bool         menu1State        0
  1558. bool         menu2State        0
  1559. bool         menu3State        0
  1560. bool         menu4State        0
  1561. bool         menu5State        0
  1562. bool         menu6State        0
  1563.  
  1564. ;"town flags"
  1565. bool        snake_dance        false        ;tells aviks snake to dance
  1566. flipflop    ts_wheel        false        ;town square wheel, bucket
  1567. flipflop    bucket_full        false        ;tells if there is water in the bucket in town square
  1568. flipflop    aloe_in_water        false
  1569. flipflop    boatcam1        false        ;turns on camera for boat pulling into harbor
  1570. flipflop    door_a            false
  1571. bool        camera_a        false
  1572. bool        DrawbridgeUp        false
  1573. bool        bell_ringing        false
  1574. bool        rollo_chest        false        ;rollo's chest open or closed
  1575. bool        silver_chest        false        ;krisandra's chest open or closed
  1576. bool        brennans_boat         false        ;set by boatstar when player gets away from it after it has arived
  1577. bool        boat_arrived        false        ;set by boatstar when it lands so brennan knows to move around
  1578. bool        brennansHatch        false        ;set true when brennan goes, below, sets trap, etc. Hatch to boat can be opened
  1579. bool        StartTavernBrawl    false        ;set when tavernfight starts
  1580. BOOL        BRENNANISLEKILLED     FALSE        ;true if he has been killed on isle
  1581.  
  1582.  
  1583.  
  1584. ;"mage's guild"
  1585. bool        mg_door2        false        ;for back door
  1586. bool        gremlin_scene        false        ;starts gremlin scene, set by falicia
  1587. bool        show_jaganvir        false        ;if true, show Jaganvir in Mages Guild; set in island map: NEVER true if after_league = true
  1588.  
  1589.  
  1590. ;"Lighthouse flags"
  1591. flipflop    lh_light        false
  1592. flipflop    lh_door            false
  1593. flipflop    lh_shut            false
  1594. bool        YaeliBoat        false        ;tells her boat to sail in
  1595. bool        YaeliBoatArrived    false
  1596. bool        YaeliBoatLeave         false
  1597. bool        YaeliBoatHasLeft     false
  1598.  
  1599. ;"gypsy camp"
  1600. bool         rock_1_down         true
  1601. bool        rock_2_down         true
  1602. bool        rock_1_at_location_1    false
  1603. bool        rock_1_at_location_2    false
  1604. bool        rock_2_at_location_1    false
  1605. BOOL        ROCK_2_AT_LOCATION_2    FALSE
  1606. bool        SabanTalk        false
  1607.  
  1608. ;"jffer's"
  1609. bool        seen_dwarven_lore    false        ;true when Cyrus has reviewed book of dwarven lore
  1610. bool        bought_elven_artifacts    false        ;true when Cyrus buys copy of elven artifacts
  1611.  
  1612. ;
  1613. bool        lillandrilInUse        false
  1614.  
  1615. ;"start map"
  1616. NUMBER        DEADPIRATES        0    ;number of pirates cyrus has killed
  1617. bool        scene5            false    ;gary's test shortcut avoiding dialog to the cutscene
  1618.  
  1619. number        globaltemp        0    ;used for global temp variables
  1620.  
  1621.  
  1622. ;jail and chase flags
  1623. bool        DramStartJailFight     false    ;tells dram to draw sword and begin fighting
  1624.  
  1625. NUMBER        STRENGTHTIMER         0    ;timers for effects
  1626. NUMBER        ARMORTIMER         0
  1627. number        MapTimer         0    ;for Maiko making map
  1628.  
  1629.  
  1630. ;potion id's
  1631. ;1    unicorns horn
  1632. ;2     Daedra's Heart
  1633. ;3      salamander
  1634. ;4    Amber
  1635. ;5    Spriggan's ear
  1636. ;6    saint's hair
  1637. ;7    pig's sac
  1638. ;8    lich dust